<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // http://localhost:3008/users
      const xhr = new XMLHttpRequest();

      xhr.open("POST", "http://localhost:3008/users");
      xhr.setRequestHeader("Content-Type", "application/json"); //头部 head

      xhr.send(JSON.stringify({ username: "lcuy", password: "123123" })); // 主体 body

      console.log(1000);
    </script>
  </body>
</html>
